import Login from './views/login'
import Dashboard from './views/dashboard'
import Monitor from './views/dashboard/monitor'
import Diagnosis from './views/dashboard/diagnosis'

const routes = [
  {
    path: '/login', component: Login
  },
  {
    path: '/dashboard',
    component: Dashboard,
    children: [
      {
        path: 'monitor',
        component: Monitor
      },
      {
        path: 'diagnosis', component: Diagnosis
      }
    ]
  },

  // redirect
  { path: '/', redirect: '/login' }
]

export default routes
